<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <title>他他说</title>
    <!--公共css与js文件-->
    <th:block th:include="front/common/common_resource::resources"/>
    <script th:src="@{/js/pagetool.js}"></script>
    <script th:src="@{/js/front/other_says.js}"></script>
</head>
<body>
<th:block th:include="front/common/header::nav"/>

<div class="grid_2">
    <div class="container">
        <!--轮播图片-->
        <div id="myCarousel" class="carousel slide">
            <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                <!-- Indicators -->

                <ol class="carousel-indicators">
                    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                </ol>

                <!-- Wrapper for slides -->
                <div class="carousel-inner" role="listbox">
                    <div class="item active">
                        <img th:src="@{/images/o3.jpg}" src="../../static/images/o3.jpg" width="100%">
                    </div>
                    <div class="item">
                        <img th:src="@{/images/o1.jpg}" src="../../static/images/o1.jpg" width="100%">
                    </div>
                    <div class="item">
                        <img th:src="@{/images/o2.jpg}" src="../../static/images/o2.jpg" width="100%">
                    </div>
                </div>

                <!-- Controls -->
                <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                    <span class="sr-only">上一篇</span>
                </a>
                <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                    <span class="sr-only">下一篇</span>
                </a>
            </div>
        </div>

        <!--左边帖子部分-->
        <div class="col-md-9 members_box2">
            <div class="col_4">
                <div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs">
                    <!--菜单-->
                    <ul class="nav nav-tabs">
                        <li role="presentation" class="active" data-toggle="tab">
                            <a id="essay-btn" href="#home" data-toggle="tab">情感专栏</a>
                        </li>
                        <li role="presentation" class="dropdown">
                            <a id="news-btn" href="#news" data-toggle="tab">新鲜事儿</a>
                        </li>
                        <li role="presentation">
                            <a id="follow-btn" href="#message" data-toggle="tab">关注的ta们</a>
                        </li>
                    </ul>

                    <div id="myTabContent" class="tab-content" style="background-color: white">

                        <!--帖子栏-->
                        <div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledby="home-tab">
                            <ul class="pagination pagination_1"></ul>
                            <div class="clearfix"></div>

                            <div id="essay-list">
                                <div class="jobs-item with-thumb">
                                    <div class="thumb_top">
                                        <a th:href="@{/other_says/essaydetail}" class="thumb">
                                            <img th:src="@{/images/p13.jpg}" src="../../static/images/p13.jpg"
                                                 class="img-responsive" alt=""/></a>
                                        </a>
                                        <div class="jobs_right">
                                            <a th:href="@{/other_says/essaydetail}"><h6 class="title">老实人就适合当男朋友？</h6></a>
                                            <ul class="login_details1">
                                                <li><span class="m_1">2017-10-11</span> | <span
                                                        class="m_1">阅读数(10037)</span> | <span class="m_1">评论数(37)</span>
                                                </li>
                                            </ul>
                                            <p class="description">有人说，左先生适合恋爱，右先生适合结婚<br></p>
                                        </div>
                                        <div class="clearfix"></div>
                                    </div>
                                </div>
                                <hr/>

                                <div onclick="window.open('otherSaysDetail.html')" style="cursor:pointer;"
                                     class="jobs-item with-thumb">
                                    <div class="thumb_top">
                                        <div class="thumb">
                                            <img th:src="@{/images/p13.jpg}" src="../../static/images/p13.jpg"
                                                 class="img-responsive" alt=""/></a>
                                        </div>
                                        <div class="jobs_right">
                                            <h6 class="title">老实人就适合当男朋友？</a></h6>
                                            <ul class="login_details1">
                                                <li><span class="m_1">2017-10-11</span> | <span
                                                        class="m_1">阅读数(10037)</span> | <span class="m_1">评论数(37)</span>
                                                </li>
                                            </ul>
                                            <p class="description">有人说，左先生适合恋爱，右先生适合结婚<br></p>
                                        </div>
                                        <div class="clearfix"></div>
                                    </div>
                                </div>
                                <hr/>
                                <div onclick="window.open('otherSaysDetail.html')" style="cursor:pointer;"
                                     class="jobs-item with-thumb">
                                    <div class="thumb_top">
                                        <div class="thumb">
                                            <img th:src="@{/images/p14.jpg}" src="../../static/images/p13.jpg"
                                                 class="img-responsive" alt=""/></a>
                                        </div>
                                        <div class="jobs_right">
                                            <h6 class="title">老实人就适合当男朋友？</a></h6>
                                            <ul class="login_details1">
                                                <li><span class="m_1">2017-10-11</span> | <span
                                                        class="m_1">阅读数(10037)</span> | <span class="m_1">评论数(37)</span>
                                                </li>
                                            </ul>
                                            <p class="description">有人说，左先生适合恋爱，右先生适合结婚<br></p>
                                        </div>
                                        <div class="clearfix"></div>
                                    </div>
                                </div>
                                <hr/>
                                <div onclick="window.open('otherSaysDetail.html')" style="cursor:pointer;"
                                     class="jobs-item with-thumb">
                                    <div class="thumb_top">
                                        <div class="thumb">
                                            <img th:src="@{/images/p13.jpg}" src="../../static/images/p13.jpg"
                                                 class="img-responsive" alt=""/></a>
                                        </div>
                                        <div class="jobs_right">
                                            <h6 class="title">老实人就适合当男朋友？</a></h6>
                                            <ul class="login_details1">
                                                <li><span class="m_1">2017-10-11</span> | <span
                                                        class="m_1">阅读数(10037)</span> | <span class="m_1">评论数(37)</span>
                                                </li>
                                            </ul>
                                            <p class="description">有人说，左先生适合恋爱，右先生适合结婚<br></p>
                                        </div>
                                        <div class="clearfix"></div>
                                    </div>
                                </div>
                                <hr/>
                            </div>
                        </div>

                        <!-- 新鲜事儿 -->
                        <div role="tabpanel" class="tab-pane fade" id="news" aria-labelledby="news-tab">
                            <span>
                                <ol class="breadcrumb"  style="background-color: white">
                                    <li id="new-li"><a style="cursor: pointer"><i class="fa fa-heart-o"></i> 最新</a></li>
                                    <li id="hot-li"><a style="cursor: pointer"><i class="fa fa-heart-o"></i>最热</a></li>
                                </ol>
                            </span>
                            <hr>
                            <div id="news-div">

                            </div>
                        </div>

                        <!-- 关注的ta们 -->
                        <div role="tabpanel" class="tab-pane fade" id="message" aria-labelledby="message-tab">
                            <div id="news-follow-div" style="padding-top: 10px">

                            </div>
                        </div>
                        <!--分页-->
                        <div class="row" id="divide-page">
                            <div class="col-md-12 text-right">
                                <div id="pagetool">
                                    <ul class="pagination">
                                        <li class="head"><a href="#">首页</a></li>
                                        <li class="lastpage"><a href="#"><i class="fa fa-angle-double-left"></i></a></li>
                                        <li class="disabled morehead"><a>...</a></li>
                                        <li class="page-4"><a></a></li>
                                        <li class="page-3"><a></a></li>
                                        <li class="page-2"><a></a></li>
                                        <li class="page-1"><a></a></li>
                                        <li class="currentpage active"><a>1</a></li>
                                        <li class="page_1"><a></a></li>
                                        <li class="page_2"><a></a></li>
                                        <li class="page_3"><a></a></li>
                                        <li class="page_4"><a></a></li>
                                        <li class="disabled moretail"><a>...</a></li>
                                        <li class="nextpage"><a href="#"><i class="fa fa-angle-double-right"></i></a></li>
                                        <li class="tail"><a href="#">尾页</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <!--右边广告部分-->
        <div class="col-md-3 col_5">
            <button id="pubMsgBtn" data-toggle="modal" data-target="#pubMsgModal"
                    class="button button-3d button-primary button-rounded">
                发动态
            </button>
            <ul id="hot-essay" class="match_box" style="background-color: white; margin-bottom: 10px; padding: 10px">
                <li><h4>推荐好文</h4></li>
                <li><a href="#">1.老实人就适合当男朋友？</a></li>
                <li><a href="#">2.【焦点话题】无性婚姻你能接受吗？</a></li>
                <li><a href="#">3.男人为什么更偏爱狐狸精样的女人？</a></li>
                <li><a href="#">4.【情感心语】如何知道一个姑娘...</a></li>
            </ul>
            <div class="view_profile view_profile2" style="margin-top: 10px">
                <h3 style="margin-bottom: 10px">给您推荐</h3>
                <!--广告栏-->
                <ul class="match_box">
                    <div th:each="userBasicStar: ${userBasicStarPick}">
                        <li>
                            <div style="cursor:pointer;"
                                 class="jobs-item with-thumb">
                                <div class="thumb_top">
                                    <div class="thumb">
                                        <a th:href="@{'profile/'+${userBasicStar.id}}">
                                            <img th:src="@{'file?path='+${userBasicStar.photo}}"
                                                style="width: 100px;height: 80px" class="img-responsive"
                                                alt=""/></a>
                                    </div>
                                    <div class="jobs_right">
                                        <h5 th:text="${userBasicStar.nickname}">之夏</h5>
                                        <p th:text="${userBasicStar.age+'岁 '+userBasicStar.workplace}">18岁 高中及以下</p>
                                        <span th:text="${userBasicStar.height+'cm '+userBasicStar.salary}+'元'">3天前注册</span>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <hr/>
                    </div>
                </ul>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</div>
<!-- Modal -->
<div class="modal fade" id="reply" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">添加评论</h4>
            </div>
            <div class="modal-body">

               <textarea rows="5" cols="65" id="reply-content" placeholder="说点什么吧...."></textarea>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="reply-submit-btn" type="button" class="btn btn-primary">提交</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="pubMsgModal" tabindex="-1" aria-labelledby="modalTitle" aria-hidden="true"
     data-keyboard="true">
    <div class="modal-dialog" style="width: 800px">
        <div class="modal-content">
            <div class="modal-header">
                <button class="close" type="button" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h3 class="modal-title">
                    <span class="fa fa-edit"></span>
                    <strong>发布动态</strong></h3>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-3">
                        <img th:src="@{/file(path=${session.user.photo})}" class="pub-msg-img" src="">
                    </div>
                    <div class="col-md-8">
                        <textarea rows="10" cols="50" id="content"></textarea>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-offset-3 col-md-8">
                        <button id="msgSubBtn" class="btn btn-primary">发布</button>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭窗口</button>
            </div>
        </div>
    </div>
</div>
<!--页面尾部-->
<th:block th:include="front/common/footer::foot"/>

</body>
</html>